﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.HttpMethod.Equals("post",StringComparison.OrdinalIgnoreCase))
            {
                Label1.Text = $"post:欢迎你，{Request.Form["tbxUserName"]}，你的密码是：" +
                    $"{Request.Form["tbxPassword"]}";
            }
            if (Request.HttpMethod.Equals("get", StringComparison.OrdinalIgnoreCase))
            {
                Label1.Text = $"get:欢迎你，{Request.Params["tbxUserName"]}，" +
                    $"你的密码是：{Request.Params["tbxPassword"]}";
            }
            
        }
    }
}